﻿using System;
using System.Web.UI.WebControls;
using Medianamik.Core;
using Medianamik.Core.Sugar;
using Medianamik.UI.Web.MVP.View;

namespace Medianamik.UI.Web.Shop
{
    public partial class ShopShippingList : ModuleViewWithGrid<IShippingList>, IShippingList
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        public override IMedianamikGrid Grid
        {
            get { return (IMedianamikGrid)ShippingListGrid; }
        }

        public override HyperLink AddButton
        {
            get { return AddArticleButton; }
        }

        public override string ListingPageUrl
        {
            get { return Pages.ShippingList; }
        }

        public override string EditPageUrl
        {
            get
            {
                return Pages.EditInvariantCulture;
            }
        }

        public override Guid BaseTypeId
        {
            get
            {
                return TypeIds.ShippingBase;
            }
        }

        public override string TypeSelectorUrl
        {
            get
            {
                return Pages.ShippingTypeSelector
                    .AddParam(DefaultParamNames.ParentNodeID, ModuleNodeId)
                    .AddParam(DefaultParamNames.TypeID, BaseTypeId);
            }
        }

        public override Guid ModuleNodeId
        {
            get
            {
                return Modules.Shop;
            }
        }

        public override string BreadcrumbTrail
        {
            get { return Breadcrumbs.Text; }
            set { Breadcrumbs.Text = value; }
        }

        public override bool  IsMultiLingual
        {
	        get 
	        { 
		         return false;
	        }
        }
    }

    public interface IShippingList : IModuleViewWithGrid
    {

    }
}
